<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            padding: 200px;
            border: 1px solid #ccc;
            background-color: #eee;
        }
    </style>
</head>

<body>
    <div>New World</div>

    <script>
        // 需求：给页面注册click事件

        // window.addEventListener('click', function () {
        //     console.log('is window')
        // })

        // document.addEventListener('click', function () {
        //     console.log('is document')
        // })

        document.documentElement.addEventListener('click', function () {
            console.log('is document.documentElement')
        })

    </script>
</body>

</html>